/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.util.InputMismatchException;
import java.util.Scanner;
import simulatefire.Building.Building;

/**
 *
 * @author Nicolas
 * @version $Revision: 1.0 $
 */
public class test {
    
    
        /**
     * @param args the command line arguments
     * @throws InterruptedException
         */
    public static void main(String[] args) throws InterruptedException {
        
        Scanner keyboard = new Scanner(System.in);
        int choice = 0;
        
        try {
            while(choice != 7){

                System.out.println("Make your choice :\n 1) test1\n 2) test2\n 3) test3\n 4) test4\n 5) test5\n 6) test6\n 7) Quit");
                choice = keyboard.nextInt();

                switch(choice){
                    case 1: System.out.println(test1());
                            break;
                    case 2:  
                            break;
                    case 3:  
                            break;
                    case 4:  
                            break;
                    case 5:  
                            break;
                    case 6:  
                            break;
                    default: break;
                }
            }
        }
        
        catch (InputMismatchException e) {
            System.err.println("Wrong input, program closing (error:" + e.getMessage() + ")");
        }
        
        /*finally{
        	keyboard.close();
        }*/
    }
    
    /**
     * Method test1.
     * @return int
     * @throws InterruptedException
     */
    public static int test1() throws InterruptedException{
        
        Building b = new Building(5,5,5);
        b.printBuilding();
        return 0;
    }
}
